package com.dgshanger.sanhxiaofeisc.mvp.model;

import com.dgshanger.sanhxiaofeisc.common.AppApi;
import com.dgshanger.sanhxiaofeisc.entity.VipEntity;
import com.dgshanger.sanhxiaofeisc.mvp.contract.RechargeContract;
import com.xx.baseutilslibrary.network.rx.RxHelper;
import com.xx.baseutilslibrary.network.rx.RxHttpObserver;

/**
 * RechargeModel
 * 沉迷学习不能自拔
 * Describe：
 * Created by 雷小星🍀 on 2018/4/30 17:48.
 */

public class RechargeModel implements RechargeContract.Model {
    @Override
    public void loadRechargeInfo(RxHttpObserver<VipEntity> httpObserver) {
        AppApi.Api()
                .vip_list()
                .compose(RxHelper.io_main())
                .subscribe(httpObserver);
    }
}
